package com.css.dzj.zfjg.modules.tipinfo.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;

/**
 * 企业举报信息
 */
@Entity
@Table(name = "JG_LHJG_TIP_INFO", schema = "DZJZFJG", catalog = "")
public class JgLhjgTipInfoEntity {
    private String tipInfoId;
    private String taskNo;
    private String tipObject;
    private String enterpriseCreditCode;
    private String tipType;
    private String tipTerritory;
    private String serviceType;
    private String serviceName;
    private String disputeDate;
    private String tipDetail;

    @Id
    @Column(name = "TIP_INFO_ID")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getTipInfoId() {
        return tipInfoId;
    }

    public void setTipInfoId(String tipInfoId) {
        this.tipInfoId = tipInfoId;
    }

    @Basic
    @Column(name = "TASK_NO")
    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    @Basic
    @Column(name = "TIP_OBJECT")
    public String getTipObject() {
        return tipObject;
    }

    public void setTipObject(String tipObject) {
        this.tipObject = tipObject;
    }

    @Basic
    @Column(name = "ENTERPRISE_CREDIT_CODE")
    public String getEnterpriseCreditCode() {
        return enterpriseCreditCode;
    }

    public void setEnterpriseCreditCode(String enterpriseCreditCode) {
        this.enterpriseCreditCode = enterpriseCreditCode;
    }

    @Basic
    @Column(name = "TIP_TYPE")
    public String getTipType() {
        return tipType;
    }

    public void setTipType(String tipType) {
        this.tipType = tipType;
    }

    @Basic
    @Column(name = "TIP_TERRITORY")
    public String getTipTerritory() {
        return tipTerritory;
    }

    public void setTipTerritory(String tipTerritory) {
        this.tipTerritory = tipTerritory;
    }

    @Basic
    @Column(name = "SERVICE_TYPE")
    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    @Basic
    @Column(name = "SERVICE_NAME")
    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    @Basic
    @Column(name = "DISPUTE_DATE")
    public String getDisputeDate() {
        return disputeDate;
    }

    public void setDisputeDate(String disputeDate) {
        this.disputeDate = disputeDate;
    }

    @Basic
    @Column(name = "TIP_DETAIL")
    public String getTipDetail() {
        return tipDetail;
    }

    public void setTipDetail(String tipDetail) {
        this.tipDetail = tipDetail;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgTipInfoEntity that = (JgLhjgTipInfoEntity) o;
        return Objects.equals(tipInfoId, that.tipInfoId) &&
                Objects.equals(taskNo, that.taskNo) &&
                Objects.equals(tipObject, that.tipObject) &&
                Objects.equals(enterpriseCreditCode, that.enterpriseCreditCode) &&
                Objects.equals(tipType, that.tipType) &&
                Objects.equals(tipTerritory, that.tipTerritory) &&
                Objects.equals(serviceType, that.serviceType) &&
                Objects.equals(serviceName, that.serviceName) &&
                Objects.equals(disputeDate, that.disputeDate) &&
                Objects.equals(tipDetail, that.tipDetail);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tipInfoId, taskNo, tipObject, enterpriseCreditCode, tipType, tipTerritory, serviceType, serviceName, disputeDate, tipDetail);
    }
}
